package top.hcode.hoj.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 前端上传文件完成后的回调
 *
 * @author orangej
 * @since 2024/12/28
 */
@Data
public class OssFileUploadNotifyDTO {
    @ApiModelProperty(value = "完整文件url地址", required = true)
    @NotNull
    private String url;

    @ApiModelProperty(value = "文件大小", required = true)
    @NotNull
    private Long size;

    @ApiModelProperty(value = "文件业务类型", notes = "例如：course_img，course_video，md，honor_img，works_img，works_video", required = true)
    @NotNull
    private String type;
}
